import nfzf from "node-fzf";

export async function prompt(list: string[]) {
  const result = await nfzf({
    list,
    mode: "fuzzy",
    prefill: "",
    postlinehook() {
      return "";
    },
    prelinehook() {
      return "";
    },
  });

  return result.selected;
}
